/*
 * @(#)PhotoNew.java 0.0.1-SNAPSHOT
 * Copyright Group B
 */

package grupb.upf.XMLObjects;

import javax.swing.ImageIcon;

/**
 * <p>This is the interface of the Photos of the news.</p>
 *
 * @version    0.0.1-SNAPSHOT
 * @author     Group B
 */
public interface PhotoNew {
    /**
     * Method to set the url of the photo.
     * @param urlPhoto the url
     */
    void setUrl(String urlPhoto);
    /**
     * Method to get the url of a photo.
     * @return the url of a photo
     */
    String getUrl();
    /**
     * Method to set the id of the photo.
     * @param idPhoto the ID
     */
    void setID(int idPhoto);
    /**
     * Method to get the id of a photo.
     * @return the id of a photo
     */
    int getID();
    /**
     * Method to set the icon of a photo.
     * @param icon the icon
     */
    void setIcon(ImageIcon icon);
    /**
     * Method to get the icon of a photo.
     * @return the ImageIcon
     */
    ImageIcon getIcon();
}
